s5p sdhci: call pinmux for card's gpio pins before use them
authorPrzemyslaw Marczak <[email protected]>
Wed, 28 Oct 2015 14:41:50 +0000 (15:41 +0100)
committerMinkyu Kang <[email protected]>
Mon, 2 Nov 2015 01:38:14 +0000 (10:38 +0900)
commit96094d4c46ba6f0402fd6add9b246380dae54536
tree692451ca4072a75a9f1987c97319de01e3693c51
parent5d0434315c46a3a038a9842a6627f6a57d1538da
s5p sdhci: call pinmux for card's gpio pins before use them

The SD card detection depends on checking one pin state.
But the pin was configured after card was detected, which is wrong.

This commit fixes this, by moving call to pinmux before use the pin.

Tested-on: Odroid U3 and Odroid X2.

Signed-off-by: Przemyslaw Marczak <[email protected]>
Cc: Guillaume GARDET <[email protected]>
Cc: Lukasz Majewski <[email protected]>
Cc: Jaehoon Chung <[email protected]>
Cc: Minkyu Kang <[email protected]>
Cc: Simon Glass <[email protected]>
Acked-by: Jaehoon Chung <[email protected]>
Tested-by: Lukasz Majewski <[email protected]>
Signed-off-by: Minkyu Kang <[email protected]>
drivers/mmc/s5p_sdhci.c